package com.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.Operator;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OperatorDao extends BaseMapper<Operator> {
       @Select("select *from test2.tb_operator where area_id=#{id}")
       public List<Operator> searchAllByAreaIdIn(Integer id);


       @Select("select *from test2.tb_operator where name=#{name} and identity=#{identity}")
       public Operator login(Operator operator);


}
